<?php

class My_View_Helper_Referrer extends Zend_View_Helper_Abstract {

    function Referrer()
    {
        $session = new Zend_Session_Namespace('history'); 
        if(isset($session->referrer)){ 
            return $session->referrer; 
        } 
        return 'index/index'; 
    }
}
?>



